package com.qf.j2105.po;

import java.util.ArrayList;
import java.util.Random;
import java.util.Scanner;

public class dept {

    private String name;

    public static void main(String[] args) {
        int[] arr = {1};
        int[] arr1 = {5};
        System.out.println("1 "+arr[0]);
        System.out.println("2 "+arr1[0]);
        change(arr,arr1);
        System.out.println("3 "+arr[0]);
        System.out.println("4 "+arr1[0]);
    }

    public static void change(int[] array1,int[] array2) {
        // 将数组的第一个元素变为0
        int temp[] =array1;
        array1 =array2;
        array2 =temp;
        System.out.println("a "+array1[0]);
        System.out.println("b "+array2[0]);
    }
}
